package com.ming_za.odupdaterserver.core.service.res.obj;

import com.ming_za.odupdaterserver.core.sqlite.domain.Res;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 版本存储元素
 */
@Data
public class VersionItem{

    /**
     * 该版本是否已发布
     */
    private boolean published;

    /**
     * 创建时间
     */
    private Date time;

    /**
     * 版本更新的内容
     */
    private List<Res> res;

    public VersionItem(boolean published, Date time, List<Res> res) {
        this.published = published;
        this.time = time;
        this.res = res;
    }
}
